]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Reset summary after losing focus to outside actor
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 4 Oct 2012 16:09:01 +0000 (18:09 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 11 Oct 2012 12:28:42 +0000 (14:28 +0200)
Currently when the summary boxpointer is ungrabbed automatically
because the keyboard focus was moved outside the message tray
(for instance by selecting the overview search entry or opening
the right-click menu of a dash item), after the popup is hidden
_updateState() will grab focus and show the popup again.
Work around this by unsetting the clicked summary item when losing
focus to an actor outside the message tray.

https://bugzilla.gnome.org/show_bug.cgi?id=685156

js/ui/messageTray.js

index 30ce5cc1c0ee045a283f5879bd63ab1d4d8b8a4f..40d5ee0626a6af3e349e0ecab5ff08dad3c60671 100644 (file)
@@ -2495,6 +2495,9 @@ const MessageTray = new Lang.Class({
             this._summaryBoxPointer.actor.hide();
             this._hideSummaryBoxPointerCompleted();
         } else {
+            if (global.stage.key_focus &&
+                !this.actor.contains(global.stage.key_focus))
+                this._setClickedSummaryItem(null);
             this._summaryBoxPointer.hide(BoxPointer.PopupAnimation.FULL, Lang.bind(this, this._hideSummaryBoxPointerCompleted));
         }
     },